package org.example.pmsystem.service;

import org.example.pmsystem.entity.User;
import org.example.pmsystem.entity.UserRole;

import java.util.List;

public interface UserService {
    String login(User user);
    User getUserRoleByuserid(String useid);
    List<User> getAllUser();
    boolean insertUser(User user);
    boolean insertUserRole(User user);

    void updateUser(User user);
    void deleteUserByuserid(String sno);
    boolean deleteUserRole(User user);
}
